package cn.zxcoder.entity.pay;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import java.io.Serializable;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

/**
 * <p>
 *
 * </p>
 *
 * @author zx
 * @since 2023-05-08
 */
@TableName("pay_cnf")
@ApiModel(value = "Cnf对象", description = "支付配置")
@Data
public class Cnf extends Mode implements Serializable {

    private static final long serialVersionUID = 1L;

    @TableId(value = "id", type = IdType.AUTO)
    private Integer id;

    @ApiModelProperty("支付名称")
    @TableField(value = "cnf_name")
    private String cnfName;

    @ApiModelProperty("支付类型")
    private Integer mode;

    @TableField(value = "merchant_code")
    @ApiModelProperty("商户号")
    private String merchantCode;

    @TableField(value = "sub_code")
    @ApiModelProperty("子商户号")
    private String subCode;

    @TableField(value = "app_id")
    @ApiModelProperty("应用id")
    private String appId;

    @TableField(value = "encryption_mode")
    @ApiModelProperty("加密类型")
    private String encryptionMode;

    @TableField(value = "secret_key")
    @ApiModelProperty("商户的签名秘钥")
    private String secretKey;

    @TableField(value = "callback_info")
    @ApiModelProperty("通知回调")
    private String callbackInfo;

    @TableField(value = "merchant_name")
    @ApiModelProperty("卖家")
    private String merchantName;

    @TableField(value = "cert_path")
    @ApiModelProperty("证书路径")
    private String certPath;

    @TableField(value = "cert_password")
    @ApiModelProperty("证书密码")
    private String certPassword;

    @TableField(value = "rsakey")
    @ApiModelProperty("支付宝私钥")
    private String rsaKey;


    public Integer getId() {
        return id;
    }

    public void setId(Integer id) {
        this.id = id;
    }
    public String getCnfName() {
        return cnfName;
    }

    public void setCnfName(String cnfName) {
        this.cnfName = cnfName;
    }
    public Integer getMode() {
        return mode;
    }

    public void setMode(Integer mode) {
        this.mode = mode;
    }
    public String getMerchantCode() {
        return merchantCode;
    }

    public void setMerchantCode(String merchantCode) {
        this.merchantCode = merchantCode;
    }
    public String getSubCode() {
        return subCode;
    }

    public void setSubCode(String subCode) {
        this.subCode = subCode;
    }
    public String getAppId() {
        return appId;
    }

    public void setAppId(String appId) {
        this.appId = appId;
    }
    public String getEncryptionMode() {
        return encryptionMode;
    }

    public void setEncryptionMode(String encryptionMode) {
        this.encryptionMode = encryptionMode;
    }
    public String getSecretKey() {
        return secretKey;
    }

    public void setSecretKey(String secretKey) {
        this.secretKey = secretKey;
    }
    public String getCallbackInfo() {
        return callbackInfo;
    }

    public void setCallbackInfo(String callbackInfo) {
        this.callbackInfo = callbackInfo;
    }
    public String getMerchantName() {
        return merchantName;
    }

    public void setMerchantName(String merchantName) {
        this.merchantName = merchantName;
    }
    public String getCertPath() {
        return certPath;
    }

    public void setCertPath(String certPath) {
        this.certPath = certPath;
    }

    @Override
    public String toString() {
        return "Cnf{" +
            "id=" + id +
            ", cnfName=" + cnfName +
            ", mode=" + mode +
            ", merchantCode=" + merchantCode +
            ", subCode=" + subCode +
            ", appId=" + appId +
            ", encryptionMode=" + encryptionMode +
            ", secretKey=" + secretKey +
            ", callbackInfo=" + callbackInfo +
            ", merchantName=" + merchantName +
            ", certPath=" + certPath +
        "}";
    }
}
